﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace CMS.Web.Manage.Aspx {
	public partial class Articles : System.Web.UI.Page {

		protected override void OnLoad(EventArgs e) {
			int categoryId = Convert.ToInt32(Request.QueryString["cid"]);

			this.article_list.InnerHtml = Core.Html.ParseArticles(categoryId, 1, this.Paging.PageSize);

			this.Paging.CategoryID = categoryId;
			this.Paging.ContainerID = this.article_list.ClientID;
			this.Paging.PageType = (int)Core.PageType.Article;
			this.Paging.RecordCount = Core.Article.Count(categoryId);
		}
	}
}
